home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / LANG / C / LIB / UNIXLIB37B / !UnixLib37 / src / pwd / c / fgetpwent next >
Text File  |  1996-11-09  |  860b  |  35 lines

  1. /****************************************************************************
  2.  *
  3.  * $Source: /unixb/home/unixlib/source/unixlib37/src/pwd/c/RCS/fgetpwent,v $
  4.  * $Date: 1996/10/30 21:57:16 $
  5.  * $Revision: 1.1 $
  6.  * $State: Rel $
  7.  * $Author: unixlib $
  8.  *
  9.  * $Log: fgetpwent,v $
  10.  * Revision 1.1  1996/10/30 21:57:16  unixlib
  11.  * Initial revision
  12.  *
  13.  ***************************************************************************/
  14.  
  15. static const char rcs_id[] = "$Id: fgetpwent,v 1.1 1996/10/30 21:57:16 unixlib Rel $";
  16.  
  17. /* pwd.c.fgetpwent. Read a password file entry.
  18.  
  19.    Written by Nick Burrett, 13 October 1996.  */
  20.  
  21. #include <stddef.h>
  22. #include <stdio.h>
  23. #include <pwd.h>
  24.  
  25. /* Read one entry from the given stream.  */
  26. struct passwd *fgetpwent (FILE *stream)
  27. {
  28.   static struct passwd pwd;
  29.  
  30.   if (stream == NULL)
  31.     return NULL;
  32.  
  33.   return __pwdread (stream, &pwd);
  34. }
  35.